<?php //echo $table['countries']; ?>
<div class="row">
	<div class="col-lg-12">
				<div class="panel panel-default">
			<div class="panel-heading">Quản lý </div>
			<div class="panel-body">
						<table id="example" class="table table-striped table-hover"  cellspacing="0" width="100%">
					<thead>
						<tr>
						<th >permission id</th>
						<th >permission name</th>						
						<th >permission name</th>						
						<th >permission name</th>						
						</tr>
						
					</thead>
			 
					
				</table>
					</div>
		</div>
			</div>
</div>

<script type="text/javascript">
$(document).ready(function() {
     var dttable = $('#example').DataTable( {
		dom: '<"top"fl>rt<"bottom"pi><"clear">',
		processing: true,
        serverSide: true,
        ajax: {"url":"http:\/\/localhost:9090\/cms\/admin\/permissions\/index3","async":false, "type": "POST"},
        language: {
            url: "http://localhost:9090/cms/template/admin/js/Vietnamese.json"
        },
		 <?php 
         echo $r;?>
		   } );
	
	$('#example3').dataTable({
    "bJQueryUI": true,
    "bSortClasses": false,
    "bAutoWidth": true,
    "bInfo": true,
    "sScrollY": "100%",
    "sScrollX": "100%",
    "bScrollCollapse": true,
    "sPaginationType": "full_numbers",
    "bRetrieve": true,
    "oLanguage": {
        "sSearch": "Search Anything:"
    },
    "bProcessing": true,
    "bServerSide": true,
    "sAjaxSource": "http://localhost:9090/crm.sccom.vn/admin/permissions/index4",
    "fnServerData": function(sSource, aoData, fnCallback) {
        $.ajax({
            "dataType": 'json',
            "type": "POST",
            "url": sSource,
            "data": aoData,
            "success": fnCallback
        });
    }
});

} );
</script>

<?php //prd($aaData);?>

